﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Ctef.Web.Models
{
    public class School
    {
        public string EngName { get; set; }
        public string SimpName { get; set; }
        public string TradName { get; set; }
        public string Name
        {
            get
            {
                if (System.Globalization.CultureInfo.CurrentCulture.Name == "zh-CN")
                {
                    return SimpName;
                }
                else if (System.Globalization.CultureInfo.CurrentCulture.Name == "zh-TW")
                {
                    return TradName;
                }
                return EngName;
            }
        }
        public string EngIntroduction { get; set; }
        public string SimpIntroduction { get; set; }
        public string TradIntroduction { get; set; }
        public string Introduction
        {
            get
            {
                if (System.Globalization.CultureInfo.CurrentCulture.Name == "zh-CN")
                {
                    return SimpIntroduction;
                }
                else if (System.Globalization.CultureInfo.CurrentCulture.Name == "zh-TW")
                {
                    return TradIntroduction;
                }
                return EngIntroduction;
            }
        }
        public double Longtitude { get; set; }
        public double Latitude { get; set; }
    }
}